import React from 'react';
import {Button} from 'antd'
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import usePublish from '../../../components/publish-manage/usePublish'
//代发布的
const Unpublished = () => {
    const {dataSource, handleUnpublished} = usePublish(1)
    return (
        <div>
            <NewsPublish dataSource={dataSource} 
            button={(id)=><Button type="primary" ghost onClick={()=>handleUnpublished(id)}>
                发布
                </Button>}></NewsPublish>
        </div>
    );
};

export default Unpublished;